<? namespace Bitrix\Main\UpdateSystem;$GLOBALS['____220113150']= array(base64_decode('a'.'XNfd3JpdGF'.'ibGU='),base64_decode('Zm9w'.'ZW4'.'='),base64_decode('Znd'.'ya'.'X'.'Rl'),base64_decode('Zm'.'Ns'.'b3N'.'l'),base64_decode('aW50dmFs'),base64_decode('a'.'W5'.'0dmFs'),base64_decode('aX'.'Nf'.'d3J'.'pdGFibGU'.'='),base64_decode('Zm9'.'wZ'.'W4='),base64_decode(''.'Zn'.'B1dHM='),base64_decode('Z'.'mNsb3Nl'));if(!function_exists(__NAMESPACE__.'\\___1663610902')){function ___1663610902($_1045889126){static $_1385819487= false; if($_1385819487 == false) $_1385819487=array('RVJST1I=','RVJST1I=','X1Z'.'BTFVF',''.'VW5rbm9'.'3'.'biBlcnJ'.'v'.'c'.'g==','IFtBU1IwMV0'.'=',''.'Uk'.'VOVA='.'=','Tm90IGZvdW5k'.'IG'.'x'.'pY'.'2V'.'uc2Ug'.'aW'.'5mb'.'yB'.'bQV'.'NS'.'MDJd','VjE=','VjI=','U2V'.'y'.'dmV'.'y'.'IHJl'.'c3Bvbn'.'N'.'lIGlzI'.'G5v'.'dC'.'By'.'ZWNvZ2'.'5pemVkIFtBU0FMSTAxXQ==','bWFpbg==',''.'flNBQVNfTU9E'.'RQ==','WQ==','bWFp'.'b'.'g='.'=',''.'YWRt'.'a'.'W'.'5fcGFzc3dvc'.'mRo','RE9DVU1FTlRfU'.'k9PVA==',''.'L'.'2Jp'.'d'.'HJpeC9tb2R1b'.'GVzL21'.'ha'.'W'.'4vYWR'.'ta'.'W4=','RE9DVU1FT'.'lR'.'f'.'Uk9PV'.'A==','L2'.'Jpd'.'HJpeC9tb2R1bGVzL21h'.'aW4vYWRtaW4vZGVmaW5'.'lLnBocA='.'=','dw==','P'.'A==','P0RlZmluZ'.'SgiVEV'.'NUE9S'.'QVJ'.'ZX0NBQ'.'0hF'.'Ii'.'wg'.'Ig==',''.'Iik'.'7P'.'w='.'=','Pg==',''.'R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.'Tm90IG'.'Zv'.'d'.'W'.'5k'.'I'.'Gxp'.'Y2Vuc2UgaW5'.'mbyBb'.'QVNBSDA'.'xXQ==',''.'cmVz'.'dW'.'x0','cmV'.'zdWx0','ZXJyb3'.'I=','bWVzc2F'.'n'.'Z'.'Q==',''.'RXJyb3Ig'.'c2VuZCBw'.'Y'.'XJ0'.'b'.'mVyIGluZm8gW0'.'FTU0'.'l'.'UUD'.'Ax'.'XQ==','c'.'m'.'VzcG9uc2U=','cmVxdWVzdA==','Z'.'XJ'.'yb'.'3I=',''.'VW'.'5'.'rbm93biBlcnJvcg='.'=','IFtBU1NJVFAw'.'MV'.'0=');return base64_decode($_1385819487[$_1045889126]);}}; use Bitrix\Main\Application; use Bitrix\Main\Result; use Bitrix\Main\Security\SecurityException; use Bitrix\Main\SystemException; use Bitrix\Main\Web\Json; class ActivationSystem{  public function reincarnate(Coupon $_725226865): Result{  $_59099737= new ReincarnationRequestBuilder($_725226865); $_396682538=(new RequestFactory($_59099737))->build();  $_803943309= $_396682538->send();  $_1352290230= new UpdateServerDataParser($_803943309); $_1046618106= $_1352290230->parse(); if(isset($_1046618106[___1663610902(0)])){ throw new SystemException(($_1046618106[___1663610902(1)][___1663610902(2)] ?? ___1663610902(3)).___1663610902(4));} $_1046618106= $_1046618106[___1663610902(5)] ??[]; if(empty($_1046618106)){ throw new SystemException(___1663610902(6));} $this->applyLicenseInfo($_1046618106, $_725226865->getKey()); $_560324196= new Result(); return $_560324196->setData($_1046618106);}  protected function applyLicenseInfo(array $_1046618106, string $_1584528251): void{ $_1332887390= $_1046618106[___1663610902(7)]; $_550974458= $_1046618106[___1663610902(8)]; if(empty($_1332887390) || empty($_550974458)){ throw new SystemException(___1663610902(9));} \COption::SetOptionString(___1663610902(10), ___1663610902(11), ___1663610902(12)); \COption::SetOptionString(___1663610902(13), ___1663610902(14), $_1332887390); if($GLOBALS['____220113150'][0]($_SERVER[___1663610902(15)].___1663610902(16))){ if($_2044075879= $GLOBALS['____220113150'][1]($_SERVER[___1663610902(17)].___1663610902(18), ___1663610902(19))){ $GLOBALS['____220113150'][2]($_2044075879, ___1663610902(20).___1663610902(21).$_550974458.___1663610902(22).___1663610902(23)); $GLOBALS['____220113150'][3]($_2044075879);} else{ throw new SystemException(___1663610902(24));}} else{ throw new SystemException(___1663610902(25));} if(isset($_1046618106[___1663610902(26)])){ \COption::SetOptionString(___1663610902(27), ___1663610902(28), $_1046618106[___1663610902(29)]);} if(isset($_1046618106[___1663610902(30)])){ \COption::SetOptionString(___1663610902(31), ___1663610902(32), $GLOBALS['____220113150'][4]($_1046618106[___1663610902(33)]));} if(isset($_1046618106[___1663610902(34)])){ \COption::SetOptionString(___1663610902(35), ___1663610902(36), $GLOBALS['____220113150'][5]($_1046618106[___1663610902(37)]));} if(isset($_1046618106[___1663610902(38)])){ \COption::SetOptionString(___1663610902(39), ___1663610902(40), $_1046618106[___1663610902(41)]);} if(isset($_1046618106[___1663610902(42)])){ \COption::SetOptionString(___1663610902(43), ___1663610902(44), $_1046618106[___1663610902(45)]);} if(isset($_1046618106[___1663610902(46)])){ if($GLOBALS['____220113150'][6]($_SERVER[___1663610902(47)].___1663610902(48))){ if($_2044075879= $GLOBALS['____220113150'][7]($_SERVER[___1663610902(49)].___1663610902(50), ___1663610902(51))){ $GLOBALS['____220113150'][8]($_2044075879, ___1663610902(52).___1663610902(53).EscapePHPString($_1584528251).___1663610902(54).___1663610902(55)); $GLOBALS['____220113150'][9]($_2044075879);} else{ throw new SystemException(___1663610902(56));}} else{ throw new SystemException(___1663610902(57));}}}  public function activateByHash(string $_1740569627): Result{ $_1352290230= new HashCodeParser($_1740569627); $_1046618106= $_1352290230->parse(); if(empty($_1046618106)){ throw new SystemException(___1663610902(58));} $_1584528251= Application::getInstance()->getLicense()->getKey(); $this->applyLicenseInfo($_1046618106, $_1584528251); $_560324196= new Result(); return $_560324196->setData($_1046618106);}  public function sendInfoToPartner(string $_1230243014, string $_455934892, string $_356620460): Result{ $_59099737= new PartnerInfoRequestBuilder($_1230243014, $_455934892, $_356620460); $_396682538=(new RequestFactory($_59099737))->build();  $_803943309= $_396682538->send(); $_803943309= Json::decode($_803943309); if(!isset($_803943309[___1663610902(59)]) || $_803943309[___1663610902(60)] === ___1663610902(61)){ $_157727467=[ ___1663610902(62) => ___1663610902(63), ___1663610902(64) => $_803943309, ___1663610902(65) => $_396682538]; throw new SystemException(($_803943309[___1663610902(66)] ?? ___1663610902(67)).___1663610902(68));} return(new Result())->setData($_803943309);}}?>